home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / PASCAL / FPKPAS65.ZIP / SRCRTLDO.ZIP / SOURCE / RTL / DOS / MODES.INC < prev    next >
Encoding:
Text File  |  1996-07-23  |  722 b   |  30 lines

  1. {****************************************************************************
  2.  
  3.                         FPKPascal Runtime-Library
  4.                           Copyright (c) 1994 by
  5.                              Florian Klämpfl
  6.  
  7.  ****************************************************************************}
  8.  
  9.     function getscreenmode : byte;
  10.     
  11.       begin
  12.          asm
  13.             movb 0xe0000449,%al
  14.             leave
  15.             ret
  16.          end ['EAX'];
  17.       end;
  18.       
  19.     procedure setscreenmode(mode : byte);
  20.     
  21.       begin
  22.          asm
  23.             movb 8(%ebp),%al
  24.             xorb %ah,%ah
  25.             pushl %ebp
  26.             int $0x10
  27.             popl %ebp
  28.          end;
  29.       end;
  30.